package com.atguigu.tingshu.user.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.user.client.impl.VipServiceConfigDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-user", fallback = VipServiceConfigDegradeFeignClient.class)
public interface VipServiceConfigFeignClient {

    /**
     * @description: 通过id 获取vip服务配置信息
     * @author Petrichor
     * @date 2024/1/5 22:11
     * @param id vip_service_config vip服务配置 id
     * @return VipServiceConfig vip服务配置信息
     **/
    @GetMapping(value = "/api/user/vipServiceConfig/findById/{id}")
    public Result<VipServiceConfig> findById(@PathVariable(value = "id") Long id);
}